package com.x.erp.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.x.erp.dao.CarMappingQczjDao;
import com.x.erp.thirdparty.CarMappingQczj;
import com.x.framework.exception.BusinessException;
import com.x.framework.exception.ExceptionCode;
import com.x.framework.service.BaseService;

@Component
public class CarMappingQczjService extends BaseService{
	
	@Autowired
	private CarMappingQczjDao carMappingQczjDao;
	
	/**
	 * 获取汽车之家车辆id
	 * @param carMappingQczj
	 * @return
	 */
	public List<CarMappingQczj> selectQczjShopList(CarMappingQczj carMappingQczj){
		try {
			return carMappingQczjDao.selectQczjCar(carMappingQczj);
		} catch (Exception e) {
			throw new BusinessException(ExceptionCode.EXCEPTION_CODE0013, e);
		}
	}
	
	/**
	 * 新增汽车之家车辆id
	 * @param carMappingQczj
	 * @return
	 */
	public CarMappingQczj insertQczjCar(CarMappingQczj carMappingQczj){
		try {
			return this.insert(carMappingQczj);
		} catch (Exception e) {
			throw new BusinessException(ExceptionCode.EXCEPTION_CODE0000, e);
		}
	}

}
